import 'package:flutter/material.dart';

class LoginEnter extends StatefulWidget {
  const LoginEnter({super.key});

  @override
  State<LoginEnter> createState() => _LoginEnterState();
}

class _LoginEnterState extends State<LoginEnter> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('这是登录入口页面'),
      ),
      body: Center(
          child: Column(
        children: [
          ElevatedButton(
              onPressed: () {
                Navigator.pushNamed(context, '/login');
              },
              child: const Text('登录')),
          const SizedBox(height: 20),
          ElevatedButton(
              onPressed: () {
                Navigator.pushNamed(context, '/register');
              },
              child: const Text('注册')),
        ],
      )),
    );
  }
}
